package com.gsafety.wellsfort.dao.organization;

import com.gsafety.wellsfort.domain.model.organization.Student;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface StudentDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    Integer countStudent(Map<String,Object> param);

    List<Student> pageQuery(Map<String,Object> param);

    List<Student> listQuery(Map<String,Object> param);

    Student getByLoginId(Integer loginId);

    Student getAllByLoginId(Integer loginId);

    List<Student> selectByClassId(Integer classId);

    List<Student> selectAll();

    Integer count();

    Integer countStartTimeByRange(@Param("createdStart") Date startTime, @Param("createdEnd") Date endTime);

    Integer deleteByParam(Map<String,Object> param);

    List<Student> selectByExt2(String ext2);

    void updateSetExt2(Student student);
}